home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / netinclude / pwd.h < prev    next >
C/C++ Source or Header  |  1994-04-07  |  985b  |  40 lines

  1. #ifndef PWD_H
  2. #define PWD_H
  3. /*
  4. **      $Filename: pwd.h $
  5. **    $Release$
  6. **      $Revision: 3.3 $
  7. **      $Date: 1994/04/07 20:23:52 $
  8. **
  9. **    Definitions of uid_t and passwd structure for 32 bit C compilers
  10. **
  11. **    Copyright © 1993,1994 AmiTCP/IP Group, <AmiTCP-Group@hut.fi>
  12. **                  Helsinki University of Technology, Finland.
  13. **                  All rights reserved.
  14. */
  15.  
  16. #ifndef SYS_TYPES_H
  17. #include <sys/types.h>
  18. #endif
  19.  
  20. /* The passwd structure */
  21. struct passwd
  22. {
  23.   char  *pw_name;               /* Username */
  24.   char  *pw_passwd;             /* Encrypted password */
  25.   uid_t  pw_uid;                /* User ID */
  26.   gid_t  pw_gid;                /* Group ID */
  27.   char  *pw_gecos;        /* Real name etc */
  28.   char  *pw_dir;                /* Home directory */
  29.   char  *pw_shell;              /* Shell */
  30. };
  31.  
  32. struct passwd *getpwuid(uid_t uid);
  33. struct passwd *getpwnam(const char *name);
  34.  
  35. void setpwent(void);
  36. struct passwd *getpwent(void);
  37. void endpwent(void);
  38.  
  39. #endif /* PWD_H */
  40.